package cn.huobi.org.mapper;

import cn.huobi.basic.mapper.BaseMapper;
import cn.huobi.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {


    List<Employee> findByDepartmentId(Long departmentId);

    Employee findByName(String username);

    void addMiddle(@Param("id") Long id, @Param("roleId") Long roleId);

    void deleteMiddle(Long id);

    List<Long> findMiddle(Long id);

    Employee findByLogininfoId(Long id);

    List<Employee> findByShopId(Long shopId);
}
